Price history (PM wire shape — {history: [{t, p}]}).
Price history for a single token — PM wire parity.
Mirrors Polymarket’s GET /prices-history?market=... (P0 eval
finding, 2026-06-10): accepts PM’s REQUIRED market= param
(previously 422’d as “missing token_id”), returns PM’s exact
{"history": [{"t": int, "p": float}]} envelope by default
(previously a bare OHLCV array that KeyError’d resp["history"]
on ported code), supports startTs/endTs/fidelity, and
400s (not 422s) on the missing-param case with PM’s live error
message verbatim.
Public endpoint — no authentication required.
Query Parameters
The market to query — a CLOB outcome TOKEN id (PM's param name; on real PM this also takes the token id despite the name). REQUIRED unless the legacy token_id alias is used.
Polysim legacy alias for market (pre-2026-06-11 the endpoint ONLY accepted this name, breaking py-clob-client ports). market wins when both are present.
PM interval enum: 1h, 6h, 1d, 1w, 1m (one MONTH), max, all. Defaults to 1h when neither startTs nor endTs is given; omitted upstream when an explicit time range is supplied.
Only items after this unix-seconds timestamp.
Only items before this unix-seconds timestamp.
Bucket accuracy in minutes (PM param; default 1).
x >= 1pm (default): PM's exact {"history": [{"t", "p"}]} envelope with p as a JSON number. ohlcv: the legacy polysim bare array of {t, o, h, l, c} string-valued points (pre-2026-06-11 default — NOT PM wire-compatible; kept for back-compat).
Response
Successful Response
- PmPriceHistory · object
- CandlePoint · object[]
PM's exact GET /prices-history envelope: {"history": [...]}.